<%@ page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<link href="${apliPath}static/css/default.css" rel="stylesheet"
	type="text/css" />
<link rel="stylesheet" type="text/css"
	href="${apliPath}static/js/themes/metro-solidBlue/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="${apliPath}static/js/themes/icon.css" />
<script type="text/javascript" src="${apliPath}static/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="${apliPath}static/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${apliPath}static/js/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	$(function() {
		$
				.get(
						"${apliPath}mentor/queryMentorsByPage?page=1&rows=6&sort=id&order=desc",
						function(data) {
							var localData = data.rows;
							$('#cc').combobox({
								data : localData,
								valueField : 'id',
								textField : 'mentorName'
							});
						});
	});
	function createArticle() {
		$("#insertForm").form("submit", {
			url : "${apliPath}article/add",
			success : function(data) {
				$.messager.show({
					title : "提示框",
					msg : "添加成功",
				});
			}
		});
		$('#insertForm').form('reset');
	}
</script>
<style>
tr {
	height: 50px;
}
</style>

<span style="font-size: 40px;margin-left:50px;color:green;">添加专辑</span>
<div id="customerDiv" align="center" style="border-color: ren">
	<form id="insertForm" method="post" class="easyui-form"
		enctype="multipart/form-data">
		<table>
			<tr>
				<td><label> 标题: </label></td>
				<td><input name="title" class="easyui-textbox" /></td>

				<td><label> 阅读次数: </label></td>
				<td><input name="viewTimes" class="easyui-textbox" /></td>
			</tr>
			<tr>
				<td><label> 谁写的: </label>
				</td>
				<td><input id="cc" name="mentor.id" class="easyui-combobox" />
				</td>

				<td colspan="2" rowspan="2"><label>内容: </label> <textarea
						name="content" style="width:200px;height:80px;">这里写内容</textarea>
				</td>
			</tr>
			<tr>
				<td colspan=""><label> 展示图: </label></td>
				<td><input name="displayPic" type="file" /></td>
			</tr>
			<tr>
				<td colspan="2"><a class="easyui-linkbutton"
					onclick="createArticle()" data-options="iconCls:'icon-ok'">submit</a>
				</td>
				<td colspan="2"><a href="javascript:;"
					class="easyui-linkbutton" id="reset"
					onclick="javascript:$('#insertForm').form('reset')"
					data-options="iconCls:'icon-reload'">reset</a>
				</td>
			</tr>


		</table>
	</form>
</div>